<template>
  <div id="app">
   
     <van-nav-bar title="智慧社区" left-text="返回"  left-arrow @click-left="aa">
      <template #right>
        <van-icon name="search" size="18" />
      </template>
    </van-nav-bar>
    <router-view/>
    <van-tabbar v-model="active" active-color="#ee0a24" inactive-color="#000">
      <van-tabbar-item icon="home-o" to="/mine">首页</van-tabbar-item>
      <van-tabbar-item icon="cluster-o" to="/service">服务</van-tabbar-item>
      <van-tabbar-item icon="cash-back-record" to="/pay">缴费</van-tabbar-item>
      <van-tabbar-item icon="guide-o" to="/parkspace">车位</van-tabbar-item>
      <van-tabbar-item icon="user-o" to="/user">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: 'App',
  data(){
    return{
      active:0
    }
  },
  methods:{
    aa(){
      this.$router.push('/mine');
    }
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #000000;
  margin-top: 0px;
}
</style>
